<?php
class Db{
	public function select($sql,$args)
	{
		print_r($sql);
	}
	public function limit()
	{
		echo "limit";
	}
}
class Base{}

class Model extends Base{

	public function __call($method,$params)
	{
		// (new Db)->$method($params);
		call_user_func_array(array(new Db,$method), $params);
	}
}

$obj = new Model;
$obj->select('select * from stu where id=?',[1]);







